package com.yong.mestock.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface CommonMapper {
    @Select("select * from user_col_comments where table_name = '${tableName}'")
    List<Map<String,String>> findColumn(@Param("tableName") String tableName);

    @Select("select * from ${tableName}")
    List<Map<String,String>> selectDataByTableName(@Param("tableName") String tableName);

    @Select("select * from user_tab_comments where comments is  not null")
    List<String> findAllTableName();
}
